<?php
/**
 * Created by PhpStorm.
 * User: Yieong
 * Date: 14-9-28
 * Time: 上午10:17
 */

class PubPlatform {
    public static $games = array(
        'st'    => array(
            'id'    => 198,
            'marketServers' => array(6950,6946,6942,6938),
            'marketEndDate'    => '2014-12-07',
        )
    );


    public static function findGameByName($game){
            return self::$games[$game];
    }


    public static function getAdjustAppIds(){

        $array = array(
            "air.com.r2games.cast","824093892","com.yaowan.tribalrus","com.yaowan.tribalrush.r2","air.com.r2games.castandconquer"
        );
        $array = Yii::app()->dbAdjust->getAll("select distinct app_id from adjust_log.tbllog_all");
        $return = array('all'=>PubFunc::t("所有"));
        foreach($array as $item){
            $return[$item['app_id']] = $item['app_id'];
        }
        return $return;
    }
}